package com.example.service.webhook.business.taobao.api;

import java.util.List;

import com.example.service.webhook.business.carrier.dto.MobileVoiceCallDetail;
import com.example.service.webhook.business.taobao.dto.DeliverAddress;
import com.example.service.webhook.business.taobao.dto.RecentDeliverAddress;
import com.example.service.webhook.business.taobao.dto.TaobaoUserInfo;
import com.example.service.webhook.business.taobao.dto.TradeDetailsRes;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface TaobaoApi {
	      
    @GET("/gateway/taobao/v2/userinfo/{taskId}")
    Call<TaobaoUserInfo> getUserInfo(@Path("taskId") String mappingId);

    @GET("/gateway/taobao/v2/deliveraddress/{taskId}")
    Call<List<DeliverAddress>> getDeliverAddress(@Path("taskId") String mappingId);
    
    @GET("/gateway/taobao/v2/recentaddress/{taskId}")
    Call<List<RecentDeliverAddress>> getRecentDeliverAddress(@Path("taskId") String mappingId);

    @GET("/gateway/taobao/v2/tradedetails/{taskId}")
    Call<TradeDetailsRes> getTradeDetails(@Path("taskId") String mappingId,@Query("page") int page,@Query("pageSize") int pageSize);
    
    
    
}
